// 引入静态路由组件数据
import { constantRoutes } from '@/router'

export default {
  namespaced: true,
  state: {
    menuList: [...constantRoutes]
  },
  mutations: {
    // 设置菜单数据
    setMenulist(state, newArr) {
      state.menuList = [...constantRoutes, ...newArr]
    }
  },
  actions: {}
}
